package com.financing.platform.dao;

import java.sql.SQLException;

import com.financing.platform.dto.ActivitieGiftDTO;
import com.financing.platform.dto.UserAccountDTO;
import com.financing.platform.dto.UserAccountDetailDTO;

public interface IUserAccountDao extends IBaseDao{
	
	/**
	 * 
	* @Title: addUserAccount 
	* @Description: 添加账户信息
	* @param   userAccountDTO
	* @param @throws SQLException    
	* @return int   
	* @throws
	 */
	public int addUserAccount(UserAccountDTO userAccountDTO) throws SQLException;
	
	/**
	 * 
	* @Title: updateUserAccount 
	* @Description: 更新账户余额信息
	* @param    userAccountDTO
	* @param @throws SQLException    
	* @return int   
	* @throws
	 */
	public int updateUserAccount(UserAccountDTO userAccountDTO) throws SQLException;
	
	/**
	 * @Description: 提现失败-更新账户余额信息
	 * @param userAccountDTO
	 * @return int
	 * @throws SQLException
	 */
	public int updateAccountBalanceActivity(UserAccountDTO userAccountDTO)	throws SQLException ;
	
	/**
	 * 
	 * @Title: addAccountMount
	 * @Description: 百万财富活动成单后给账户打款 
	 * @param @param userAccountDTO
	 * @param @return
	 * @param @throws SQLException   
	 * @return int   
	 * @throws
	 */
	public int addAccountMount(ActivitieGiftDTO activitieGiftDTO) throws SQLException;
	/**
	 * 
	* @Title: addUserAccountDetail 
	* @Description: 添加用户账户返佣明细
	* @param   userAccountDetailDTO
	* @param @throws SQLException    
	* @return int   
	* @throws
	 */
	public int addUserAccountDetail(UserAccountDetailDTO userAccountDetailDTO) throws SQLException;
	/**
	 * 
	* @Title: insertUserAccountDetail 
	* @Description: 添加用户账户明细
	* @param   userAccountDetailDTO
	* @param @throws SQLException    
	* @return int   
	* @throws
	 */
	public int insertUserAccountDetail(UserAccountDetailDTO userAccountDetailDTO) throws SQLException;
	
	/**
	 * 
	* @Title: getUserAccountId 
	* @Description: 查询账户ID
	* @param   userId
	* @return int   
	* @throws
	 */
	public int getUserAccountId(String userId);
	
	/**
	 * 
	 * @Title: thawingAccountMount
	 * @Description: 解冻红包金额 
	 * @param @param activitieGiftDTO
	 * @param @return
	 * @param @throws SQLException   
	 * @return int   
	 * @throws
	 */
	public int thawingAccountMount(ActivitieGiftDTO activitieGiftDTO) throws SQLException;
	
}
